<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="{url('group/index')}">权限组</a> / 
    <a href="javascript:void(0);">权限组列表</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('group/index')}" class="button"><i class="iconfont icon-xiangzuo1"></i> 返回</a>
    </div>
</div>
<div class="m10">
<form id="form" action="{url('group/edit')}">
<input type="hidden" name="id" value="{$id}"/>
<table class="table">
    <tr>
        <th>权限组名称:</th>
        <td><input datatype="*" class="input w300" type="text" name="name" value="{$info['name']}"/></td>
    </tr>
</table>
<table class="table">
{loop $list['lists'] $vo}
    <tr>
        <td class="fn-tal bg-f5 fn-f16">{htmlspecialchars_decode($vo['icon'])} {htmlspecialchars_decode($vo['name'])}</td>
    </tr>
    <tr>
        <td>
{loop $vo['lists'] $rs}
            <table class="table">
                <tr>
                    <td class="w100 fn-tal bg-f5 fn-f14">{htmlspecialchars_decode($rs['icon'])} {htmlspecialchars_decode($rs['name'])}</td>
                </tr> 
                <tr>  
                    <td>
{loop $rs['lists'] $v}
            <table class="table">
                <tr>
                    <td class="w100 fn-tar bg-f5 fn-f14">{htmlspecialchars_decode($v['name'])}</td>
                    <td>
{loop $v['lists'] $group}
    <input type="checkbox" name="auth[]" value="{$group['app']}_{$group['controller']}_{$group['method']}" {if in_array($group['app'].'_'.$group['controller'].'_'.$group['method'],$auth)} checked="checked"{/if} />
    {htmlspecialchars_decode($group['name'])}
{/loop}
                    </td>
                </tr>
            </table> 
 {/loop} 
                    </td>
                </tr>
            </table> 
 {/loop}  
        </td>
    </tr>
 {/loop}   
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</div>
</form>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
})
</script>